/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sp.dao.i;

import java.util.List;
import sp.model.Category;

/**
 *
 * @author DINHDV
 */
public interface ICategory {

    boolean insert(Category category);

    boolean update(Category category);

    boolean delete(Category category);

    Category getById(int id);

    List<Category> getAll();

    List<Category> filterByFieldName(String filterFieldName, String filterValue);
}
